const objToQueryString = (obj) => {
	return Object.keys(obj).map(key => {
		let value = obj[key];
		if (Array.isArray(value)) {
			// 处理数组类型的值
			value = value.map(encodeURIComponent).join(',');
		} else {
			value = encodeURIComponent(value);
		}
		return `${encodeURIComponent(key)}=${value}`;
	}).join('&');
}
export default objToQueryString